function [ output ] = calcExpectedOutput( input )
%CALCEXPECTEDOUTPUT Summary of this function goes here
%   Detailed explanation goes here

len = size(input,2);

output = 0;

for i=1:len-2
    if( input(i) ==1 && input(i+1) == 1 && input(i+2) == 1)
        output=1;
        break;
    end
end



end

